
import io.qt.core.QEvent
import io.qt.core.Qt
import io.qt.widgets.QWidget

class LyricWidget : QWidget {

    val ui = Ui_LyricWidget()

    constructor() : super() {
        ui.setupUi(this)
    }

    constructor(arg0: QWidget?) : super(arg0) {
        ui.setupUi(this)
    }

    constructor(arg0: QWidget?, arg1: Qt.WindowFlags) : super(arg0, arg1) {
        ui.setupUi(this)
    }

    constructor(arg0: QWidget?, vararg arg1: Qt.WindowType) : super(arg0, *arg1) {
        ui.setupUi(this)
    }

    override fun changeEvent(e: QEvent?) {
        super.changeEvent(e)
        when (e?.type()) {
        QEvent.Type.LanguageChange -> ui.retranslateUi(this)
        else -> {}
        }
    }
}
